import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:getx_scaffold/getx_scaffold.dart';

import 'locales/en_US.dart';
import 'locales/zh_CN.dart';

class TranslationLibrary extends Translations {
  // 默认语言 Locale(语言代码, 国家代码)
  static const fallbackLocale = Locale('zh', 'CN');

  static const supportedLocales = [
    Locale('zh', 'CN'),
    Locale('en', 'US'),
  ];

  Map<String, Map<String, String>> _keys = {
    'zh': zh_CN,
    'en': en_US,
  };

  set keys(Map<String, Map<String, String>> value) {
    _keys = value;
  }

  @override
  Map<String, Map<String, String>> get keys => _keys;

  static const localizationsDelegates = [
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
  ];

 Future load() async {

  }
}
